{"ast":null,"code":"import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { getDirectionStyle } from '../util';\nimport SliderContext from '../context';\nexport default function Mark(props) {\n  var prefixCls = props.prefixCls,\n    style = props.style,\n    children = props.children,\n    value = props.value,\n    _onClick = props.onClick;\n  var _React$useContext = React.useContext(SliderContext),\n    min = _React$useContext.min,\n    max = _React$useContext.max,\n    direction = _React$useContext.direction,\n    includedStart = _React$useContext.includedStart,\n    includedEnd = _React$useContext.includedEnd,\n    included = _React$useContext.included;\n  var textCls = \"\".concat(prefixCls, \"-text\"); // ============================ Offset ============================\n\n  var positionStyle = getDirectionStyle(direction, value, min, max);\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(textCls, _defineProperty({}, \"\".concat(textCls, \"-active\"), included && includedStart <= value && value <= includedEnd)),\n    style: _objectSpread(_objectSpread({}, positionStyle), style),\n    onMouseDown: function onMouseDown(e) {\n      e.stopPropagation();\n    },\n    onClick: function onClick() {\n      _onClick(value);\n    }\n  }, children);\n}","map":{"version":3,"names":["_objectSpread","_defineProperty","React","classNames","getDirectionStyle","SliderContext","Mark","props","prefixCls","style","children","value","_onClick","onClick","_React$useContext","useContext","min","max","direction","includedStart","includedEnd","included","textCls","concat","positionStyle","createElement","className","onMouseDown","e","stopPropagation"],"sources":["/data/messenger.client/node_modules/rc-slider/es/Marks/Mark.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { getDirectionStyle } from '../util';\nimport SliderContext from '../context';\nexport default function Mark(props) {\n  var prefixCls = props.prefixCls,\n      style = props.style,\n      children = props.children,\n      value = props.value,\n      _onClick = props.onClick;\n\n  var _React$useContext = React.useContext(SliderContext),\n      min = _React$useContext.min,\n      max = _React$useContext.max,\n      direction = _React$useContext.direction,\n      includedStart = _React$useContext.includedStart,\n      includedEnd = _React$useContext.includedEnd,\n      included = _React$useContext.included;\n\n  var textCls = \"\".concat(prefixCls, \"-text\"); // ============================ Offset ============================\n\n  var positionStyle = getDirectionStyle(direction, value, min, max);\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(textCls, _defineProperty({}, \"\".concat(textCls, \"-active\"), included && includedStart <= value && value <= includedEnd)),\n    style: _objectSpread(_objectSpread({}, positionStyle), style),\n    onMouseDown: function onMouseDown(e) {\n      e.stopPropagation();\n    },\n    onClick: function onClick() {\n      _onClick(value);\n    }\n  }, children);\n}"],"mappings":"AAAA,OAAOA,aAAa,MAAM,0CAA0C;AACpE,OAAOC,eAAe,MAAM,2CAA2C;AACvE,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,iBAAiB,QAAQ,SAAS;AAC3C,OAAOC,aAAa,MAAM,YAAY;AACtC,eAAe,SAASC,IAAI,CAACC,KAAK,EAAE;EAClC,IAAIC,SAAS,GAAGD,KAAK,CAACC,SAAS;IAC3BC,KAAK,GAAGF,KAAK,CAACE,KAAK;IACnBC,QAAQ,GAAGH,KAAK,CAACG,QAAQ;IACzBC,KAAK,GAAGJ,KAAK,CAACI,KAAK;IACnBC,QAAQ,GAAGL,KAAK,CAACM,OAAO;EAE5B,IAAIC,iBAAiB,GAAGZ,KAAK,CAACa,UAAU,CAACV,aAAa,CAAC;IACnDW,GAAG,GAAGF,iBAAiB,CAACE,GAAG;IAC3BC,GAAG,GAAGH,iBAAiB,CAACG,GAAG;IAC3BC,SAAS,GAAGJ,iBAAiB,CAACI,SAAS;IACvCC,aAAa,GAAGL,iBAAiB,CAACK,aAAa;IAC/CC,WAAW,GAAGN,iBAAiB,CAACM,WAAW;IAC3CC,QAAQ,GAAGP,iBAAiB,CAACO,QAAQ;EAEzC,IAAIC,OAAO,GAAG,EAAE,CAACC,MAA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